<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var dog = {
            uname:'可可',
            type:'阿拉斯加犬',
            age:5,
            color:'red',
            bark: function() {
                alert('汪汪汪')
            },
            showFilm: function() {
                alert('演电影')
            }
        }
        console.log(dog.uname);
        dog.bark()
    </script>
</body>
</html>